#include <unistd.h>

int main(int argc, char const *argv[])
{


    int pid= fork();
    if(pid==0)
    {
        char *argv[] = {"ping","-c","5" ,"www.baidu.com",NULL};

         execve("/usr/bin/ping1111",argv,NULL);
        printf(" 子进程结束\n");
    }
    waitpid(pid,NULL,0);
    printf("主进程结束\n");

    return 0;
}
